/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.asset.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fuyao.cloud.common.core.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 预算管理
 *
 * @author 时间的朋友
 * @date 2021-11-12 18:53:46
 */
@Data
@TableName("fy_asset_budget")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "预算管理")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AssetBudget extends BaseEntity<AssetBudget> {
    private static final long serialVersionUID = 1L;

    /**
     * 唯一编码（用于关联附件）
     */
    @ApiModelProperty(value="唯一编码（用于关联附件）")
    private String unid;

    /**
     * 所属年度
     */
    @ApiModelProperty(value="所属年度")
    private Integer year;

    /**
     * 预算序号
     */
    @ApiModelProperty(value="预算序号")
    private String number;

    /**
     * 预算分类(01:办公费、02：设备费、:03：材料费、04：维修费、05：委托业务费、06：其他)
     */
    @ApiModelProperty(value="预算分类(01:办公费、02：设备费、:03：材料费、04：维修费、05：委托业务费、06：其他)")
    private String type;

    /**
     * 开支单位ID
     */
    @ApiModelProperty(value="开支单位ID")
    private Long expenditureId;

    /**
     * 开支单位全名称
     */
    @ApiModelProperty(value="开支单位全名称")
    private String expenditureFullname;

    /**
     * 执行单位ID
     */
    @ApiModelProperty(value="执行单位ID")
    private Long executionId;

    /**
     * 执行单位全名称
     */
    @ApiModelProperty(value="执行单位全名称")
    private String executionFullname;

    /**
     * 责任人ID
     */
    @ApiModelProperty(value="责任人ID")
    private Long liableId;

    /**
     * 责任人
     */
    @ApiModelProperty(value="责任人")
    private String liableName;

    /**
     * 预算金额
     */
    @ApiModelProperty(value="预算金额")
    private BigDecimal amount;

    /**
     * 完成时间
     */
    @ApiModelProperty(value="完成时间")
    private LocalDate completionDate;

    /**
     * 备注
     */
    @ApiModelProperty(value="备注")
    private String remarks;

    /**
     * 是否限制合同执行（1：是,0：否）
     */
    @ApiModelProperty(value="是否限制合同执行（1：是,0：否）")
    private String limitThreshold;

}
